package com.xiyou.luckdraw.api.service;

import com.xiyou.luckdraw.api.dto.order.OrderInfoListRequest;
import com.xiyou.luckdraw.api.dto.order.OrderInfoListResponse;
import com.xiyou.luckdraw.api.dto.user.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: IUserInfoService
 * @Description: 用户信息Service接口
 * @author: limingxing
 * @Date: 2019-10-09 21:11
 */
public interface IUserInfoService {

    /**
     * 查询用户信息列表
     * @param request
     * @return
     */
    UserInfoListResponse getUserList(UserInfoListRequest request);

    /**
     * 根据userId更新用户信息
     * @param request
     * @return
     */
    UpdateUserInfoResponse updateByUserId(UpdateUserInfoRequest request);

    /**
     * 用户信息Excel导出
     * @param servletRequest
     * @return
     */
    List downLoadExcel(HttpServletRequest servletRequest);

    /**
     * 查询统计一周内新增用户数
     * @return
     */
    CountUserWeekResponse selectCountWeek();

    /**
     * 获取Mongodb登录活跃用户请求参数
     * @param request
     * @return
     */
    UserInfoListResponse selectActiveUser(ActiveUserRequest request);

    /**
     * 统计活跃用户
     * @return
     */
    CountUserWeekResponse countActiveUser();
}
